﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Web.DynamicData;

namespace WebDynBorsa
{
		public partial class Default : System.Web.UI.Page
		{
				protected void Page_Load(object sender, EventArgs e)
				{
						var visibleTables = MetaModel.Default.VisibleTables ;
						if ( visibleTables.Count == 0)
						{return ;
								//throw new InvalidOperationException("Nessuna tabella accessibile. Accertarsi che almeno un modello dati sia registrato in Global.asax e che le pagine di supporto temporaneo siano attivate oppure implementare pagine personalizzate.");
						}
						var lista = visibleTables.OrderBy(t => t.Name).ToList() ;
						Menu1.DataSource = lista;
						Menu1.DataBind();

						//ListBoxTabelle.DataSource = lista ;
						//ListBoxTabelle.DataBind();  
				}

		}
}
